package com.candy.excp;

/**
 * @author donglin
 * @Title:
 * @类名: Test01
 * @date 2020/7/16
 */
public class Test01 {
    public static void main(String[] args) {
        int a=3;
        int b=0;
        int c= 0;
        try {
            c = a/b;
        }
        catch(ArithmeticException e) {
//            System.out.println(e);
            System.out.println("除数不能为0");
        }catch(Exception e) {
            System.out.println("除数不能为0");
        }
        finally {
            System.out.println("程序执行完毕");
        }








    }
}
